<?php

namespace App\Modules\Rebate;

use Illuminate\Console\Scheduling\Schedule as BaseSchedule;

class Schedule
{
    public static function invoke(BaseSchedule $schedule)
    {
        $schedule->call([self::class, 'refresh'])->everyTenMinutes()->name('刷新奖金排行榜');
    }

    public static function refresh()
    {
        \App\Modules\Rebate\Rank::refresh();
        \App\Modules\Rebate\NumberRank::refresh();
    }
}
